<template>
  <div class="card-sale" ref="saleRef">TodayUsers</div>
</template>

<script lang="ts">
export default {
  name: "TodayUsers",
};
</script>

<script lang="ts" setup>

import * as echarts from "echarts"
import { ref,onMounted } from "vue";

const saleRef=ref()

onMounted(()=>{
  const myEcharts=echarts.init(saleRef.value)
  const option={
    xAxis: {
      data: [
        "一月",
        "二月",
        "三月",
        "四月",
        "五月",
        "六月",
        "七月",
        "八月",
        "九月",
        "十月",
        "十一月",
        "十二月",
      ],
 
    },
    yAxis:{
   show:false
    },
    series:{
      name:"实时交易量",
      type:"bar",
      data: [25, 15, 46, 20, 14, 35, 15, 46, 20, 34, 34, 13],
      boundaryGap: false,
    },
    grid:{
      top:0,
      bottom:0,
      left:0,
      right:0
    },
 tooltip:{
  trigger:"axis",
  axisPointer:{
    type:"line"
  }
 }
    
  }
  myEcharts.setOption(option)
})
 
</script>

<style scoped>
.card-sale{
  height: 100%;
}

</style>